<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Test BF</title>
  <link rel="stylesheet" href="qunit.css">
</head>
<body>
  <script src="jquery.js"></script>
  <script src="underscore.js"></script>
  <script src="rip.js"></script>
  <script src="bf.js"></script>
  <script>
		var snake30 = {"24": {"25": 1, "23": 1}, "25": {"24": 1, "26": 1}, "26": {"25": 1, "27": 1}, "27": {"26": 1, "28": 1}, "20": {"19": 1, "21": 1}, "21": {"20": 1, "22": 1}, "22": {"21": 1, "23": 1}, "23": {"24": 1, "22": 1}, "28": {"27": 1, "29": 1}, "29": {"30": 1, "28": 1}, "0": {"1": 1}, "4": {"3": 1, "5": 1}, "8": {"9": 1, "7": 1}, "59": {"60": 1, "58": 1}, "58": {"57": 1, "59": 1}, "55": {"54": 1, "56": 1}, "54": {"55": 1, "53": 1}, "57": {"56": 1, "58": 1}, "56": {"55": 1, "57": 1}, "51": {"50": 1, "52": 1}, "50": {"51": 1, "49": 1}, "53": {"54": 1, "52": 1}, "52": {"51": 1, "53": 1}, "88": {"89": 1, "87": 1}, "89": {"90": 1, "88": 1}, "82": {"83": 1, "81": 1}, "83": {"82": 1, "84": 1}, "80": {"81": 1, "79": 1}, "81": {"82": 1, "80": 1}, "86": {"87": 1, "85": 1}, "87": {"88": 1, "86": 1}, "84": {"83": 1, "85": 1}, "85": {"86": 1, "84": 1}, "3": {"2": 1, "4": 1}, "7": {"8": 1, "6": 1}, "39": {"38": 1, "40": 1}, "38": {"39": 1, "37": 1}, "33": {"32": 1, "34": 1}, "32": {"33": 1, "31": 1}, "31": {"32": 1, "30": 1}, "30": {"31": 1, "29": 1}, "37": {"38": 1, "36": 1}, "36": {"37": 1, "35": 1}, "35": {"36": 1, "34": 1}, "34": {"33": 1, "35": 1}, "60": {"61": 1, "59": 1}, "61": {"60": 1, "62": 1}, "62": {"61": 1, "63": 1}, "63": {"62": 1, "64": 1}, "64": {"63": 1, "65": 1}, "65": {"64": 1, "66": 1}, "66": {"65": 1, "67": 1}, "67": {"68": 1, "66": 1}, "68": {"69": 1, "67": 1}, "69": {"68": 1, "70": 1}, "2": {"1": 1, "3": 1}, "6": {"5": 1, "7": 1}, "90": {"89": 1}, "11": {"10": 1, "12": 1}, "10": {"9": 1, "11": 1}, "13": {"12": 1, "14": 1}, "12": {"11": 1, "13": 1}, "15": {"14": 1, "16": 1}, "14": {"13": 1, "15": 1}, "17": {"18": 1, "16": 1}, "16": {"15": 1, "17": 1}, "19": {"18": 1, "20": 1}, "18": {"19": 1, "17": 1}, "48": {"47": 1, "49": 1}, "49": {"50": 1, "48": 1}, "46": {"47": 1, "45": 1}, "47": {"46": 1, "48": 1}, "44": {"45": 1, "43": 1}, "45": {"46": 1, "44": 1}, "42": {"43": 1, "41": 1}, "43": {"44": 1, "42": 1}, "40": {"39": 1, "41": 1}, "41": {"42": 1, "40": 1}, "1": {"0": 1, "2": 1}, "5": {"4": 1, "6": 1}, "9": {"8": 1, "10": 1}, "77": {"76": 1, "78": 1}, "76": {"77": 1, "75": 1}, "75": {"76": 1, "74": 1}, "74": {"75": 1, "73": 1}, "73": {"74": 1, "72": 1}, "72": {"73": 1, "71": 1}, "71": {"72": 1, "70": 1}, "70": {"69": 1, "71": 1}, "79": {"80": 1, "78": 1}, "78": {"77": 1, "79": 1}}


;
		
		var r = new BF.Bf(snake30);
		//console.log(typeof r.workers['a']);
		//console.log(typeof r.workers['b']);
		//console.log(typeof r.workers['c']);
		r.compute(function(final_paths){
			console.log('finish', final_paths);
			console.log('string', JSON.stringify(final_paths));
		});
		//setTimeout(function () {
			//console.log(r.final_paths);
				//'a':{'a': 0, 'b': 1, 'c': 2},
				//'b':{'a': 1, 'b': 0, 'c': 1},
				//'c':{'a': 2, 'b': 1, 'c': 0}
		//},500);
  </script>
</body>
</html>